import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class ThreadPoolDemo8 {
    public static void main(String[] args) {
        ExecutorService service= Executors.newWorkStealingPool();
        for (int i = 0; i <100 ; i++) {
            service.submit(new Runnable() {
                @Override
                public void run() {
                    System.out.println("线程名："+Thread.currentThread().getName());
                }
            });
        }
        while(!service.isTerminated()){
        }
    }
}
